import type { BarChartReq, BarChartRes, ParamInfoReq, ParamInfoRes, StaticInfoReq, StaticInfoRes } from './types';

/**
 * @description 静态信息数据
 */
export const getStaticInfo = (data: StaticInfoReq) => {
    return useClientRequest<ResPonseType<StaticInfoRes>>('/api/device/report', {
        query: data,
    });
};

/**
 * @description 参数信息数据
 */
export const getParameterInformation = (data: ParamInfoReq) => {
    return useClientRequest<ResPonseType<ParamInfoRes>>('/api/report/log', {
        query: data,
    });
};

/**
 * @description 柱状图表数据
 */
export const getBarChart = (data: BarChartReq) => {
    return useClientRequest<ResPonseType<BarChartRes>>('/api/report/statistics', {
        query: data,
    });
};
